package com.songlanyun.modules.information.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.information.entity.InformationEntity;
import com.songlanyun.modules.information.model.dto.InformationDto;
import com.songlanyun.modules.information.model.vo.InformationVo;

import java.util.List;
import java.util.Map;

/**
 * 资讯
 *
 * @author WuChao
 * @email songlanyun@gmail.com
 * @date 2022-11-18 09:52:58
 */
public interface InformationService extends IService<InformationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    InformationEntity getById(Long id, boolean tw);

    InformationVo info(Long id);

    InformationVo getVoById(Long id);

    void add(Long userId, InformationDto dto);

    void edit(Long userId, InformationDto dto);

    void delete(Long id);

    void top(InformationDto dto);

    void recommend(Long id);

    PageUtils apiPage(Map<String, Object> params);

    List<InformationEntity> apiList(Map<String, Object> params);

    InformationVo apiInfo(Long id);

    void share(Long userId, Long id);

    List<InformationEntity> getListTitleAndId();

}

